<?php

include("utils.php");
include("lang_buildCustomNetwork.php");
if(!isset($_SESSION[siteuserId]))
	echo '<script>location.href="index.php"</script>';
main_content("mainBuySpace();");

function mainBuySpace()
{
if($_SESSION['langId']!="")
{
	$langId=$_SESSION['langId'];
}
else
{
	$langId="1";
}
}


$query_checking = "select * from adgroup where campaign_id=0";
echo $query_checking;
$res_checking = mysql_query($query_checking);

if(mysql_num_rows($res_checking)>0)
{

mysql_query("delete from adgroup where campaign_id=0");

}

?>